
import java.util.Random;
import java.util.Scanner;

//十以内比大小数学题生成
public class Main {
    public static void main(String args[]) {
        Random random = new Random();
        int a = random.nextInt(11);
        int b = random.nextInt(11);
        System.out.println("填写比较符号");
        System.out.println(a + " " + b);
        Scanner scanner = new Scanner(System.in);
        String answer = scanner.next();
        // 不知道为什么 if代码段有问题
        if (a > b && answer.equals(">")) {
            System.out.println("答对了");
        } else if (a == b && answer.equals("=")) {
            System.out.println("答对了");
        } else if (a < b && answer.equals("<")) {
            System.out.println("答对了");
        } else {
            System.out.println("答错了");
        }
        scanner.close();
    }
}